package org.ranshiyan.config;

import org.ranshiyan.model.Shopping;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
//扫描包
@ComponentScan(basePackages = "org.ranshiyan.config")
public class SpringConfig {


    @Bean
    public Shopping shopping(){
        return  new Shopping();
    }


}
